﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace KeyboardImageViewer
{
    /// <summary>
    /// Interaction logic for EditMultipleTags.xaml
    /// </summary>
    public partial class EditMultipleTags : Window
    {
        private ImageManager manager;

        public EditMultipleTags(ImageManager manager, MainWindow window)
        {
            this.manager = manager;

            this.Owner = window;

            InitializeComponent();

            this.tagBox.Focus();
        }

        private void addButton_Click(object sender, RoutedEventArgs e)
        {
            this.manager.AddTagToVisible(this.tagBox.Text.ToLowerInvariant());
        }

        private void removeButton_Click(object sender, RoutedEventArgs e)
        {
            this.manager.RemoveTagFromVisible(this.tagBox.Text.ToLowerInvariant());
        }
    }
}
